package com.mew.common.rest.events;

import com.mew.common.rest.MewResponse;
import io.netty.buffer.ByteBuf;
import lombok.*;


@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class DaysRouletteResponseMessage extends MewResponse<DaysRouletteResponseMessage> {

    private int totalTimes; //领取次数
    private int roIndex; //转盘定格第几格
    private long roGold; //转动获取的金额

    private long goldNumber; //金币

    @Override
    public void write(ByteBuf b) {

        writeInt(b, this.totalTimes);
        writeInt(b, this.roIndex);
        writeLong(b, this.roGold);
        writeLong(b, this.goldNumber);
    }

    @Override
    public DaysRouletteResponseMessage read(ByteBuf byteBuf) {
        return null;
    }

}
